package com.wufeng.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName article
 */
@TableName(value ="article")
@Data
public class Article implements Serializable {
    /**
     * 文章Id
     */
    @TableId(value = "articleId", type = IdType.AUTO)
    private Integer articleid;

    /**
     * 用户Id，发布者
     */
    @TableField(value = "userId")
    private Integer userid;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createtime;

    /**
     * 文章标题
     */
    @TableField(value = "articleTitle")
    private String articletitle;

    /**
     * 文章主体内容
     */
    @TableField(value = "articleContent")
    private String articlecontent;

    /**
     * 点赞数量
     */
    @TableField(value = "likeCount")
    private Integer likecount;

    /**
     * 回复数量
     */
    @TableField(value = "replyCount")
    private Integer replycount;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}